package com.luhuiguo.gwt.mvp.dispatcher.server.guice;


import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.luhuiguo.gwt.mvp.dispatcher.server.AbstractDispatcherServlet;
import com.luhuiguo.gwt.mvp.dispatcher.server.Dispatcher;

@Singleton
public class GuiceDispatcherServlet extends AbstractDispatcherServlet {

    private static final long serialVersionUID = 151302390104819724L;

    private final Dispatcher dispatcher;

    @Inject
    public GuiceDispatcherServlet( Dispatcher dispatcher ) {
        this.dispatcher = dispatcher;
    }

    @Override
    protected Dispatcher getDispatcher() {
        return dispatcher;
    }
}
